import { RouteRecordRaw } from 'vue-router';
import MainLayout from '@/layout/index.vue';

const routes: RouteRecordRaw = {
  path: '/dashboard',
  name: 'dashboard',
  meta: {
    path: '/dashboard',
    title: '首页',
    icon: 'menu',
    order: 1,
  },
  component: MainLayout,
  redirect: '/dashboard/index',
  children: [
    {
      path: 'index',
      name: 'dashboardIndex',
      meta: {
        path: '/dashboard/index',
        title: '首页',
        icon: '',
        order: 1,
      },
      component: () => import('@/views/dashboard/index.vue'),
    },
  ],
};

export default routes;
